﻿@using System.Web.Http
@using System.Web.Http.Description
@using System.Collections.ObjectModel
@using sharp_net.Mvc.HelpPage
@model Collection<ApiDescription>

@{
    ViewBag.Title = "danreng.com API Help Page";

    // Group APIs by controller
    ILookup<string, ApiDescription> apiGroups = Model.ToLookup(api => api.ActionDescriptor.ControllerDescriptor.ControllerName);
}

<div id="body">
    <section class="featured">
        <div class="content-wrapper">
            <h2>@ViewBag.Title</h2>
            <p>
                Just enjoy here!
            </p>
        </div>
    </section>
    <section class="content-wrapper main-content clear-fix">
        @foreach (var group in apiGroups) {
            @Html.DisplayFor(m => group, "ApiGroup")
        }
    </section>
</div>

@section Scripts {

}